<?php


namespace core\lib;


class model extends \PDO
{
    function __construct()
    {
        $dsn = 'mysql:host=localhost;dbname=test';
        $username = 'root';
        $passwd = '123456';
        try{
            parent::__construct($dsn, $username, $passwd);
        }catch (\PDOException $e){
            print_r($e->getMessage());
        }
    }
}